/*
 * Copyright (c) 2015-2018 Sfkj Science And Technology Co.,Ltd.
 * All Rights Reserved.
 * This software is the confidential and proprietary information of
 * Sfkj Science And Technology Co.,Ltd.
 * ("Confidential Information").You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sfkj.
 */
package com.sfkj.walk.query.note;

import com.querydsl.core.annotations.QueryTransient;
import com.sfkj.walk.mongo.AbstractDocument;
import com.sfkj.walk.query.user.User;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.axonframework.domain.ImageUrl;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;

import java.time.LocalDateTime;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = true)
public class Note extends AbstractDocument {

    private static final long serialVersionUID = 5486518515056304077L;

    @Indexed
    private String activityId;
    private ImageUrl url;
    private String introduction;
    private LocalDateTime time;
    @Indexed
    private Integer year;
    @Indexed
    private Integer month;
    @Indexed
    private Integer day;
    @Indexed
    private String creatorId;
    private Map<String, Object> properties;

    @Transient
    @QueryTransient
    private User creator;

}